package cn.edu.pku.wxlib.vo.response;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import cn.org.rapid_framework.util.DateConvertUtils;
import javacommon.base.BaseEntity;

public class BorrowtracingFull extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//date formats
	public static final String FORMAT_OPERATE_TIME = DATE_TIME_FORMAT;
	
	//columns START
    /** borrowTracingId       db_column: borrowTracingId */	
	
	private java.lang.Integer borrowTracingId;
    /** 借阅id       db_column: userToBookBorrowId */	
	@NotNull 
	private java.lang.Integer userToBookBorrowId;
    /** 管理员id       db_column: adminId */	
	@NotNull 
	private java.lang.Integer adminId;
	private java.lang.String adminName;
	private java.lang.String name;
    /** 操作类型（1借；2续借；3还；4丢失）       db_column: operateType */	
	private java.lang.String userName;
	private java.lang.Integer operateType;
    /** operateTime       db_column: operateTime */	
	
	private java.util.Date operateTime;
    /** 128       db_column: remark */	
	private java.lang.String remark;
	//columns END

	public void setBorrowTracingId(java.lang.Integer value) {
		this.borrowTracingId = value;
	}
	
	public java.lang.Integer getBorrowTracingId() {
		return this.borrowTracingId;
	}
	public void setUserToBookBorrowId(java.lang.Integer value) {
		this.userToBookBorrowId = value;
	}
	
	public java.lang.Integer getUserToBookBorrowId() {
		return this.userToBookBorrowId;
	}
	public void setAdminId(java.lang.Integer value) {
		this.adminId = value;
	}
	
	public java.lang.Integer getAdminId() {
		return this.adminId;
	}
	public void setOperateType(java.lang.Integer value) {
		this.operateType = value;
	}
	
	public java.lang.Integer getOperateType() {
		return this.operateType;
	}
	public String getOperateTimeString() {
		return DateConvertUtils.format(getOperateTime(), FORMAT_OPERATE_TIME);
	}
	public void setOperateTimeString(String value) {
		setOperateTime(DateConvertUtils.parse(value, FORMAT_OPERATE_TIME,java.util.Date.class));
	}
	
	public void setOperateTime(java.util.Date value) {
		this.operateTime = value;
	}
	
	public java.util.Date getOperateTime() {
		return this.operateTime;
	}
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}
	
	public java.lang.String getRemark() {
		return this.remark;
	}

	public java.lang.String getAdminName() {
		return adminName;
	}

	public void setAdminName(java.lang.String adminName) {
		this.adminName = adminName;
	}

	public java.lang.String getName() {
		return name;
	}

	public void setName(java.lang.String name) {
		this.name = name;
	}

	public java.lang.String getUserName() {
		return userName;
	}

	public void setUserName(java.lang.String userName) {
		this.userName = userName;
	}
}